#ifndef DECODER_FLAC_METADATA_H_
#define DECODER_FLAC_METADATA_H_

#include <nds.h>
#include <stdio.h>
#include <vector>
#include "decoder_flac_metadata_types.h"
#include "audioreader.h"

class FLACMetadata {
	bool last;
	uint32_t size;
	FLACmetatype type;
	long dataStart;
	AudioReader* reader;
	
public:
	void init(AudioReader* ar);
	bool nextBlock();
	FLACmetatype getType();
	
	FLACstreaminfo readStreaminfo();
	std::vector<FLACseekpoint> readSeektable();
	FLACvorbis readVorbisComment();
//	Cuesheet readCuesheet();	
};

#endif /* DECODER_FLAC_METADATA_H_ */
